from django.conf.urls import url

from . import views

urlpatterns = [

    # 1. 首页
    url(r'^orders/settlement/$', views.OrderSettlementView.as_view(), name="settlement"),

    # 2. 提交订单 orders/commit/
    url(r'^orders/commit/$', views.OrderCommitView.as_view(), name="commit"),

    # 3. 订单成功页面的显示 orders/success/
    url(r'^orders/success/$', views.OrderSuccessView.as_view(), name="success"),

    # 4 /orders/(?P<pk>\d+)/UncommentGoods/
    url(r'^orders/(?P<pk>\d+)/UncommentGoods/$', views.UncommentGoodsView.as_view(), name="UncommentGoods"),

    # 5 /orders/(\d+)/comments/
    url(r'^orders/comments/$', views.CommentsView.as_view(), name="comments"),

    # 6 /skus/(?P<PK>\d+)/comments/
    url(r'^skus/(?P<pk>\d+)/comments/$', views.SKUSCommentsView.as_view(), name="sku_comments"),
    #16用户订单/order/
    url('^orders/(?P<page_num>\d+)/$', views.OrderView.as_view(), name='orders'),

]